﻿<!DOCTYPE html>
<html>
<head>
  <title>Leaflet Quick Start Guide Example</title>
  <meta charset="utf-8" />

  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <link rel="stylesheet" href="/Content/styles/bootstrap.css">
  <link rel="stylesheet" href="/Content/themes/metro-bootstrap/metro-bootstrap.css">
  <link rel="stylesheet" href="/Content/styles/font-awesome.min.css">
  <link rel="stylesheet" href="/Content/styles/leaflet.awesome-markers.css">
  <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.css" />
  <!--<link rel="stylesheet" href="/Scripts/leaflet-0.5.1/leaflet.css" />-->
<!--[if lte IE 8]>
    <link rel="stylesheet" href="/Content/leaflet.ie.css" />
<![endif]-->
</head>
<body>
  <div id="map" style="position: absolute; top: 0; bottom: 0; left: 0; right: 0;"></div>

  <script src="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js"></script>
  <!--<script src="/Scripts/leaflet-0.5.1.js"></script>-->
  <script src="/Scripts/leaflet.awesome-markers.js"></script>
  <!--<script src="/Scripts/bootstrap.min.js"></script>-->
  <script>

    var locateServiceUri = 'api/locate';
    // em is the service gateway and cache holder
    // var locateContext = new breeze.EntityManager(locateServiceUri);

    //tilelayers
    var cmk = 'f8a57472669e4fcda99ebd5ed0f72918';

    //Map Styling
    var tileUri = '';
    var subdomains = 'abc';
    //styleId = 93587; tileUri = 'http://{s}.tile.cloudmade.com/' + cmk + '/' + styleId + '/256/{z}/{x}/{y}.png'; //CloudMade ohne Restaurants, etc
    tileUri = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'; //OpenStreetMap
    var map = null;
    function _imitializeMap(elementId) {

      //create map
      map = L.map(elementId, { center: new L.LatLng(48.008, 16.235), zoom: 14 });
      //map.setView 
      //map.setView({ center: new L.LatLng(48.008, 16.235), zoom: 14 });

      //load tile layer
      var tiles = L.tileLayer(tileUri, {
        subdomains: subdomains,
        attribution: ' <a href="http://openstreetmap.org">OpenStreetMap</a> — <a href="http://onyourway.at">onYOURway</a>',
        maxZoom: 18
      });
      tiles.addTo(map);

      //get regions
      //_loadRegions().then(function () {
      //  alert(appModel.regions[0].RegionViews[0].Bounds);
      //});

      //dim nonCoveredAreas
      _createNonCoverdArea();

      //load test markers
      _insertTestMarkers();

      /* define and hook up the eventhandlers */
      //map.on('click', function (e) {
      //  app.showMessage('Map klicked at ' + JSON.stringify(e.latlng), 'Map Event');
      //});

      //appModel.map = map;
      //return map;

    }

    //function _loadRegions() {
    //  var query = breeze.EntityQuery.from("Regions");
    //  return locateContext
    //    .executeQuery(query)
    //    .then(function (d) {
    //      console.log("Regions queried", 'appModel');
    //      appModel.regions(d);
    //    })
    //    .fail(function (error) {
    //      console.log("Query for Regions failed: " + error.message, 'appModel', error);
    //    });
    //}

    function _createNonCoverdArea() {
      var coords = [
        [[90, -180], [90, 180], [-90, 180], [-90, -180], [90, -180]],
        [[16.290953, 47.963978], [16.292168, 47.964832], [16.292507, 47.96506], [16.294008, 47.966106], [16.294886, 47.966766], [16.29548, 47.967186], [16.295818, 47.967323], [16.296103, 47.967377], [16.296444, 47.96785], [16.296726, 47.968456], [16.297009, 47.9688], [16.297518, 47.96937], [16.298113, 47.970074], [16.298765, 47.97085], [16.299587, 47.97184], [16.300068, 47.97254], [16.30008, 47.972565], [16.30137, 47.974174], [16.302248, 47.97539], [16.302929, 47.97701], [16.301882, 47.97674], [16.299845, 47.97703], [16.298855, 47.976307], [16.297834, 47.97547], [16.297012, 47.97473], [16.29625, 47.97494], [16.294865, 47.975212], [16.293932, 47.975403], [16.292942, 47.97565], [16.291613, 47.97607], [16.29082, 47.97645], [16.289915, 47.976795], [16.28935, 47.976986], [16.288643, 47.977367], [16.288332, 47.97756], [16.287624, 47.9779], [16.28672, 47.978302], [16.285872, 47.97872], [16.285505, 47.978912], [16.28508, 47.97916], [16.28279, 47.98002], [16.280216, 47.98103], [16.276907, 47.98227], [16.274164, 47.98328], [16.273485, 47.983566], [16.272665, 47.98372], [16.271845, 47.983852], [16.27159, 47.984062], [16.271168, 47.984253], [16.27094, 47.984425], [16.270687, 47.984596], [16.270489, 47.984673], [16.270092, 47.984806], [16.268423, 47.98504], [16.267801, 47.98511], [16.267517, 47.985153], [16.266699, 47.985535], [16.265936, 47.98582], [16.265453, 47.985992], [16.265087, 47.986164], [16.264435, 47.98649], [16.264353, 47.986584], [16.264153, 47.986794], [16.263533, 47.987324], [16.263248, 47.987534], [16.262598, 47.987556], [16.261608, 47.98746], [16.261297, 47.98769], [16.260702, 47.9882], [16.260448, 47.988377], [16.259884, 47.988792], [16.25929, 47.989098], [16.258837, 47.98969], [16.25862, 47.989777], [16.258186, 47.99045], [16.25782, 47.990887], [16.257677, 47.990944], [16.257452, 47.99104], [16.257338, 47.991077], [16.257227, 47.991096], [16.257057, 47.99121], [16.256208, 47.9927], [16.25604, 47.99298], [16.255983, 47.99319], [16.255983, 47.993954], [16.256012, 47.994274], [16.25604, 47.99454], [16.256126, 47.99479], [16.256184, 47.994957], [16.256268, 47.995243], [16.25641, 47.99593], [16.256693, 47.996822], [16.256863, 47.99758], [16.256891, 47.997677], [16.257006, 47.998173], [16.257233, 47.998817], [16.25892, 47.99943], [16.259611, 48.000134], [16.259726, 48.0003], [16.259924, 48.0003], [16.2603, 48.00027], [16.260689, 48.000282], [16.260717, 48.00072], [16.260744, 48.00091], [16.261057, 48.00091], [16.261566, 48.000946], [16.261963, 48.000984], [16.262417, 48.000965], [16.262897, 48.00108], [16.263351, 48.0011], [16.263409, 48.001816], [16.263323, 48.002728], [16.263268, 48.00288], [16.263124, 48.002995], [16.262953, 48.00309], [16.262783, 48.003147], [16.262217, 48.00326], [16.262018, 48.0033], [16.261791, 48.003338], [16.261509, 48.003376], [16.260773, 48.00347], [16.26063, 48.00387], [16.260572, 48.00427], [16.260572, 48.004574], [16.260515, 48.00516], [16.260427, 48.00582], [16.260033, 48.005825], [16.260033, 48.0059], [16.259949, 48.006565], [16.259892, 48.00696], [16.259832, 48.007458], [16.259832, 48.007477], [16.259748, 48.007988], [16.259748, 48.008274], [16.259607, 48.008537], [16.260202, 48.00848], [16.260202, 48.008728], [16.26023, 48.009678], [16.260145, 48.01019], [16.260048, 48.011063], [16.259659, 48.01223], [16.259089, 48.013634], [16.25889, 48.013973], [16.25847, 48.01404], [16.25728, 48.014404], [16.256714, 48.014633], [16.256516, 48.01473], [16.256142, 48.015163], [16.255577, 48.01524], [16.255266, 48.015392], [16.255182, 48.01545], [16.254616, 48.015755], [16.254248, 48.01602], [16.253878, 48.01629], [16.25365, 48.016438], [16.252886, 48.016838], [16.252092, 48.017124], [16.25161, 48.01724], [16.2511, 48.017372], [16.250616, 48.017467], [16.250107, 48.017506], [16.249681, 48.017544], [16.249285, 48.0176], [16.248747, 48.017754], [16.248434, 48.01785], [16.24801, 48.01806], [16.24784, 48.017906], [16.247726, 48.017715], [16.247272, 48.017014], [16.247217, 48.016937], [16.247019, 48.01658], [16.246904, 48.016502], [16.246735, 48.01658], [16.245998, 48.017056], [16.24563, 48.017223], [16.245731, 48.01748], [16.245203, 48.017662], [16.245005, 48.01787], [16.244778, 48.018005], [16.244326, 48.018005], [16.243788, 48.017986], [16.243334, 48.01789], [16.242397, 48.017628], [16.242058, 48.01759], [16.242086, 48.01734], [16.242058, 48.017246], [16.241945, 48.01723], [16.241833, 48.01723], [16.24169, 48.017303], [16.241463, 48.017494], [16.241123, 48.017326], [16.24084, 48.017212], [16.240328, 48.017174], [16.239649, 48.01716], [16.239592, 48.017197], [16.239563, 48.017612], [16.239477, 48.01788], [16.239138, 48.0179], [16.238743, 48.017975], [16.238344, 48.01805], [16.23788, 48.01823], [16.235254, 48.0187], [16.234943, 48.018833], [16.234262, 48.019077], [16.234009, 48.019154], [16.23242, 48.019726], [16.231342, 48.02009], [16.229755, 48.0207], [16.22743, 48.021458], [16.226692, 48.021572], [16.225616, 48.021744], [16.224768, 48.02167], [16.224087, 48.02171], [16.223747, 48.021767], [16.222754, 48.021862], [16.222101, 48.021957], [16.220034, 48.022057], [16.218332, 48.022057], [16.216234, 48.022152], [16.215944, 48.022076], [16.215101, 48.02204], [16.21428, 48.02197], [16.213741, 48.02193], [16.213259, 48.02195], [16.212833, 48.02197], [16.212494, 48.021683], [16.21221, 48.021305], [16.21187, 48.02096], [16.211672, 48.02085], [16.211388, 48.020794], [16.210766, 48.020737], [16.209972, 48.02078], [16.209717, 48.020817], [16.209406, 48.02087], [16.207335, 48.02127], [16.207165, 48.021156], [16.206995, 48.021008], [16.206003, 48.021255], [16.205523, 48.02137], [16.205153, 48.021465], [16.204672, 48.02158], [16.204247, 48.02175], [16.203423, 48.022186], [16.203396, 48.02234], [16.203367, 48.022568], [16.203028, 48.022587], [16.202856, 48.022587], [16.202347, 48.022453], [16.201553, 48.022038], [16.201412, 48.02198], [16.201355, 48.02196], [16.201185, 48.02189], [16.201015, 48.02189], [16.200903, 48.021908], [16.200674, 48.02198], [16.200562, 48.022076], [16.200504, 48.022133], [16.200222, 48.02238], [16.199766, 48.02295], [16.19954, 48.02312], [16.199116, 48.02331], [16.19869, 48.023445], [16.198208, 48.023502], [16.197302, 48.02358], [16.196707, 48.02354], [16.196253, 48.02343], [16.19577, 48.023277], [16.195118, 48.02307], [16.194893, 48.023052], [16.194609, 48.02307], [16.19441, 48.023148], [16.194183, 48.02326], [16.193787, 48.02364], [16.19356, 48.023926], [16.193304, 48.024193], [16.193077, 48.024437], [16.192568, 48.02423], [16.191973, 48.02383], [16.19166, 48.023663], [16.191462, 48.023567], [16.191122, 48.0233], [16.190613, 48.023018], [16.19013, 48.02268], [16.189903, 48.02241], [16.18982, 48.022316], [16.189724, 48.022224], [16.18965, 48.02194], [16.189537, 48.021652], [16.189566, 48.02116], [16.189592, 48.021103], [16.189678, 48.020893], [16.189848, 48.02072], [16.190115, 48.020657], [16.19026, 48.020634], [16.190569, 48.020584], [16.19073, 48.020428], [16.190893, 48.020176], [16.191065, 48.019913], [16.191114, 48.01961], [16.191162, 48.019394], [16.190983, 48.01884], [16.190767, 48.018517], [16.190596, 48.018368], [16.19046, 48.01823], [16.190401, 48.018154], [16.190357, 48.017986], [16.190256, 48.017807], [16.190077, 48.01763], [16.189821, 48.017403], [16.189737, 48.017326], [16.189568, 48.017174], [16.189226, 48.017365], [16.187979, 48.018032], [16.187412, 48.018276], [16.18642, 48.018562], [16.186392, 48.018562], [16.186308, 48.0186], [16.186165, 48.018623], [16.186052, 48.01858], [16.185541, 48.018166], [16.18489, 48.017673], [16.184523, 48.017372], [16.184011, 48.017143], [16.183586, 48.01705], [16.183218, 48.01705], [16.182993, 48.017105], [16.182652, 48.017296], [16.18231, 48.01743], [16.181402, 48.017696], [16.180668, 48.017868], [16.180323, 48.0179], [16.180157, 48.017906], [16.179619, 48.017925], [16.179165, 48.01787], [16.178656, 48.017757], [16.17806, 48.017513], [16.177862, 48.01738], [16.17772, 48.01719], [16.177578, 48.01681], [16.177492, 48.01662], [16.177353, 48.016487], [16.17704, 48.016205], [16.176672, 48.01607], [16.176304, 48.016033], [16.176105, 48.015976], [16.17585, 48.01588], [16.175623, 48.015713], [16.175367, 48.015408], [16.175056, 48.015163], [16.174717, 48.014954], [16.172932, 48.01418], [16.17262, 48.014046], [16.172592, 48.013363], [16.172564, 48.012074], [16.172647, 48.01156], [16.172905, 48.010933], [16.17299, 48.010536], [16.173054, 48.00989], [16.173187, 48.009663], [16.173471, 48.009415], [16.173592, 48.008354], [16.173899, 48.007896], [16.174126, 48.00744], [16.174152, 48.006947], [16.174494, 48.006493], [16.174812, 48.00583], [16.174948, 48.00581], [16.174976, 48.005787], [16.175323, 48.005657], [16.175713, 48.005505], [16.176422, 48.004875], [16.176931, 48.004383], [16.177416, 48.004], [16.178526, 48.00332], [16.178555, 48.00317], [16.17852, 48.00311], [16.179314, 48.00271], [16.179768, 48.002483], [16.180391, 48.00214], [16.181185, 48.001663], [16.181667, 48.001453], [16.182348, 48.001133], [16.183027, 48.000904], [16.183426, 48.00079], [16.18385, 48.000637], [16.18419, 48.000446], [16.184387, 48.000256], [16.184898, 47.999706], [16.185127, 47.999783], [16.18558, 48.000046], [16.186203, 48.0002], [16.18711, 48.000214], [16.187902, 48.000195], [16.188385, 48.00012], [16.189121, 47.999947], [16.190256, 47.99955], [16.192007, 47.99949], [16.192383, 47.999508], [16.192522, 47.999508], [16.192438, 47.9997], [16.192211, 47.999924], [16.192156, 48.00002], [16.192183, 48.000057], [16.192383, 48.00017], [16.19258, 48.00023], [16.192835, 48.000248], [16.193373, 48.000263], [16.194338, 48.00015], [16.195103, 48.000053], [16.195244, 48.00032], [16.195414, 48.00062], [16.197115, 48.00036], [16.198618, 48.000164], [16.199142, 48.000187], [16.198862, 48.000004], [16.19939, 47.99947], [16.198223, 47.998684], [16.197826, 47.99844], [16.197458, 47.998344], [16.197119, 47.998344], [16.196241, 47.998573], [16.195251, 47.99888], [16.194914, 47.99905], [16.194658, 47.99882], [16.194572, 47.99869], [16.194319, 47.998234], [16.193865, 47.99789], [16.193329, 47.99738], [16.192818, 47.996883], [16.192337, 47.99692], [16.191828, 47.99687], [16.191149, 47.996773], [16.19013, 47.99679], [16.188745, 47.99672], [16.188433, 47.996548], [16.18849, 47.996357], [16.188885, 47.995808], [16.189734, 47.994892], [16.190468, 47.99451], [16.190836, 47.994377], [16.191147, 47.994358], [16.192335, 47.99428], [16.193325, 47.994106], [16.193438, 47.994053], [16.193466, 47.994034], [16.193495, 47.994034], [16.194033, 47.99382], [16.194315, 47.993687], [16.194653, 47.993553], [16.194992, 47.993404], [16.19734, 47.99279], [16.198133, 47.99256], [16.1985, 47.992485], [16.198896, 47.992428], [16.198925, 47.992218], [16.19898, 47.99199], [16.200111, 47.991837], [16.200453, 47.9918], [16.200716, 47.99173], [16.20082, 47.991703], [16.20113, 47.991474], [16.2013, 47.99117], [16.201637, 47.990543], [16.201921, 47.99018], [16.202374, 47.989647], [16.202627, 47.989193], [16.202656, 47.98902], [16.202682, 47.98866], [16.202711, 47.988335], [16.202599, 47.988144], [16.203388, 47.988102], [16.204107, 47.988136], [16.205502, 47.987988], [16.207571, 47.98767], [16.20769, 47.98865], [16.2082, 47.988632], [16.20854, 47.988594], [16.210238, 47.98857], [16.211199, 47.98863], [16.211227, 47.989998], [16.213095, 47.98986], [16.215075, 47.989708], [16.215668, 47.989403], [16.215923, 47.98929], [16.217367, 47.989265], [16.219488, 47.98917], [16.220295, 47.98925], [16.221298, 47.989033], [16.224155, 47.988785], [16.223843, 47.98808], [16.224026, 47.98805], [16.224295, 47.98802], [16.225597, 47.98783], [16.225996, 47.988403], [16.226305, 47.9884], [16.227125, 47.9884], [16.227463, 47.98817], [16.227917, 47.987865], [16.22834, 47.986935], [16.228706, 47.98663], [16.229416, 47.98619], [16.22981, 47.98577], [16.230495, 47.985386], [16.230566, 47.98518], [16.230568, 47.984833], [16.230406, 47.984615], [16.230206, 47.984234], [16.230036, 47.98387], [16.22995, 47.98366], [16.229637, 47.982994], [16.229015, 47.981667], [16.228533, 47.98062], [16.228193, 47.980034], [16.228163, 47.979748], [16.228022, 47.97946], [16.229353, 47.979042], [16.229805, 47.979477], [16.232464, 47.979076], [16.232727, 47.978973], [16.232971, 47.978886], [16.233877, 47.97875], [16.234386, 47.9786], [16.235092, 47.978195], [16.235771, 47.977894], [16.236677, 47.97736], [16.238344, 47.976654], [16.239334, 47.976368], [16.240637, 47.976], [16.242079, 47.97562], [16.24256, 47.97564], [16.24304, 47.975677], [16.243322, 47.975697], [16.24454, 47.97566], [16.244963, 47.975693], [16.246208, 47.975807], [16.247143, 47.975883], [16.24738, 47.97612], [16.247482, 47.976223], [16.247599, 47.976353], [16.247822, 47.976604], [16.248104, 47.976624], [16.248346, 47.976643], [16.248783, 47.97664], [16.248783, 47.97626], [16.249405, 47.97576], [16.249603, 47.975174], [16.249716, 47.97483], [16.249857, 47.97449], [16.250732, 47.973347], [16.251835, 47.971977], [16.25223, 47.97148], [16.252485, 47.971252], [16.252825, 47.970856], [16.253193, 47.970436], [16.254093, 47.96984], [16.254265, 47.96929], [16.25469, 47.968704], [16.255056, 47.96838], [16.255508, 47.967922], [16.255762, 47.967693], [16.256132, 47.96752], [16.256866, 47.96779], [16.257404, 47.968014], [16.257998, 47.968185], [16.25831, 47.968224], [16.259073, 47.96853], [16.25981, 47.96913], [16.259876, 47.96949], [16.25981, 47.96978], [16.25998, 47.96999], [16.25998, 47.97029], [16.259869, 47.970577], [16.259869, 47.970978], [16.259811, 47.971188], [16.259953, 47.97134], [16.260633, 47.971775], [16.261028, 47.97191], [16.261482, 47.97206], [16.261707, 47.97223], [16.262161, 47.97261], [16.261738, 47.972992], [16.262445, 47.97356], [16.263462, 47.974644], [16.26417, 47.97428], [16.26451, 47.97409], [16.265923, 47.973537], [16.266348, 47.973385], [16.266714, 47.973175], [16.267082, 47.973003], [16.268072, 47.9727], [16.269007, 47.97247], [16.26977, 47.97224], [16.271324, 47.971855], [16.272118, 47.971645], [16.273872, 47.970863], [16.27636, 47.969795], [16.276417, 47.969757], [16.276728, 47.969566], [16.277433, 47.969624], [16.277971, 47.96966], [16.27899, 47.96932], [16.279753, 47.969147], [16.280659, 47.96888], [16.281027, 47.968784], [16.282213, 47.96855], [16.282751, 47.968475], [16.283232, 47.968475], [16.283686, 47.9684], [16.284054, 47.968285], [16.284334, 47.96819], [16.284702, 47.968056], [16.284958, 47.967922], [16.285324, 47.967636], [16.28558, 47.967445], [16.285948, 47.96716], [16.287416, 47.96621], [16.287727, 47.966057], [16.288294, 47.96575], [16.289057, 47.965313], [16.28951, 47.965046], [16.290697, 47.964188], [16.290953, 47.963978]]
      ];
      var layer = L.multiPolygon(L.GeoJSON.coordsToLatLngs(coords), { color: "#ff7800", weight: 2 });
      layer.addTo(map);
    }

    function _insertTestMarkers() {
      L.marker([48.0063, 16.2171], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0067, 16.2327], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0065, 16.2354], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "green" }) }).addTo(map);
      L.marker([48.0071, 16.2317], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "orange" }) }).addTo(map);
      L.marker([48.0053, 16.2312], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([47.9961, 16.2032], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "green" }) }).addTo(map);
      L.marker([48.0003, 16.2424], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0025, 16.2378], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0067, 16.2313], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "green" }) }).addTo(map);
      L.marker([48.0073, 16.2317], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "orange" }) }).addTo(map);
      L.marker([48.0092, 16.2324], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "orange" }) }).addTo(map);
      L.marker([48.0074, 16.2344], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "green" }) }).addTo(map);
      L.marker([48.0067, 16.2327], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "orange" }) }).addTo(map);
      L.marker([48.0058, 16.2328], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "orange" }) }).addTo(map);
      L.marker([48.0065, 16.2354], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "green" }) }).addTo(map);
      L.marker([48.0094, 16.2405], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "orange" }) }).addTo(map);
      L.marker([48.0073, 16.2268], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "orange" }) }).addTo(map);
      L.marker([48.009, 16.2339], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "green" }) }).addTo(map);
      L.marker([48.011, 16.2859], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "orange" }) }).addTo(map);
      L.marker([48.0077, 16.2334], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0076, 16.2265], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "green" }) }).addTo(map);
      L.marker([48.0076, 16.2265], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "orange" }) }).addTo(map);
      L.marker([48.0076, 16.2265], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0119, 16.2002], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "green" }) }).addTo(map);
      L.marker([48.0093, 16.2356], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0091, 16.2347], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "orange" }) }).addTo(map);
      L.marker([48.0078, 16.2543], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "green" }) }).addTo(map);
      L.marker([48.018, 16.2294], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "orange" }) }).addTo(map);
      L.marker([48.018, 16.2294], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0003, 16.2537], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "green" }) }).addTo(map);
      L.marker([48.0051, 16.238], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "orange" }) }).addTo(map);
      L.marker([48.0028, 16.2312], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0112, 16.2443], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "green" }) }).addTo(map);
      L.marker([48.0054, 16.2337], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0056, 16.2321], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0098, 16.2342], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "green" }) }).addTo(map);
      L.marker([48.0044, 16.2369], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "orange" }) }).addTo(map);
      L.marker([48.0103, 16.232], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0096, 16.2269], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "green" }) }).addTo(map);
      L.marker([48.0084, 16.2337], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "orange" }) }).addTo(map);
      L.marker([48.0037, 16.2444], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0089, 16.2339], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "green" }) }).addTo(map);
      L.marker([48.0081, 16.2555], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0061, 16.2427], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48, 16.2456], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "green" }) }).addTo(map);
      L.marker([48.0038, 16.2458], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0095, 16.2381], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0025, 16.2493], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "green" }) }).addTo(map);
      L.marker([48.0069, 16.2354], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "orange" }) }).addTo(map);
      L.marker([48.0093, 16.2412], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0017, 16.2406], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "green" }) }).addTo(map);
      L.marker([47.9968, 16.247], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0077, 16.2317], { icon: L.AwesomeMarkers.icon({ icon: "icon-shopping-cart", color: "green" }) }).addTo(map);
      L.marker([48.0017, 16.231], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "green" }) }).addTo(map);
      L.marker([48.0167, 16.2234], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0082, 16.2318], { icon: L.AwesomeMarkers.icon({ icon: "icon-shopping-cart", color: "green" }) }).addTo(map);
      L.marker([47.998, 16.2051], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "green" }) }).addTo(map);
      L.marker([48.0027, 16.2443], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0041, 16.215], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0079, 16.2311], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "green" }) }).addTo(map);
      L.marker([48.0065, 16.2327], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0097, 16.241], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0189, 16.1909], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "green" }) }).addTo(map);
      L.marker([48.0029, 16.2512], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0069, 16.2297], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0012, 16.2359], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "green" }) }).addTo(map);
      L.marker([47.9999, 16.2513], { icon: L.AwesomeMarkers.icon({ icon: "icon-shopping-cart", color: "green" }) }).addTo(map);
      L.marker([48.0112, 16.2351], { icon: L.AwesomeMarkers.icon({ icon: "icon-coffee", color: "orange" }) }).addTo(map);
      L.marker([48.0077, 16.2317], { icon: L.AwesomeMarkers.icon({ icon: "icon-shopping-cart", color: "green" }) }).addTo(map);
      L.marker([48.0067, 16.2361], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0081, 16.2512], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0069, 16.2286], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "green" }) }).addTo(map);
      L.marker([47.9985, 16.2175], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0091, 16.2423], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0079, 16.2377], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "green" }) }).addTo(map);
      L.marker([48.0047, 16.2393], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0014, 16.243], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0073, 16.2315], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "green" }) }).addTo(map);
      L.marker([48.0077, 16.2304], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([47.9982, 16.2492], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0139, 16.2586], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "green" }) }).addTo(map);
      L.marker([48.0055, 16.2313], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0055, 16.231], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0081, 16.2208], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "green" }) }).addTo(map);
      L.marker([48.0073, 16.2315], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0039, 16.2144], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([47.9751, 16.2784], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "green" }) }).addTo(map);
      L.marker([48.0012, 16.2481], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0126, 16.2443], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0119, 16.2002], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "green" }) }).addTo(map);
      L.marker([48.0024, 16.2221], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([47.9972, 16.2093], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0077, 16.2317], { icon: L.AwesomeMarkers.icon({ icon: "icon-shopping-cart", color: "green" }) }).addTo(map);
      L.marker([47.999, 16.2293], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0066, 16.2312], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0122, 16.2149], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "green" }) }).addTo(map);
      L.marker([48.0044, 16.2205], { icon: L.AwesomeMarkers.icon({ icon: "icon-glass", color: "orange" }) }).addTo(map);
      L.marker([48.0023, 16.2488], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "orange" }) }).addTo(map);
      L.marker([48.0021, 16.248], { icon: L.AwesomeMarkers.icon({ icon: "icon-food", color: "green" }) }).addTo(map);
    }

    _imitializeMap('map');

  </script>
</body>
</html>